<template>
	<view class="box">
		<mytitle :title="fa_title" :iconclass='fa_iconclass' :infolist="fa_infolist"></mytitle>
	</view>
</template>

<script>
	import mytitle from '../../components/mycomponents/title.vue'
	export default{
		data(){
			return{
				fa_title:'门票',   //需要传入的标题
				fa_iconclass:'cuIcon-titles',  //需要传入的标题的样式
				fa_infolist:[]   //需要传入的列表样式
			}
		},
		components:{
			mytitle
		},
		methods: {
			getData(){
				const that =this
				uni.request({
					url: 'https://www.fastmock.site/mock/88bbb3bb8d6ea3dc8f09431a61ce2e50/mymock_test/api/getData',
					method: 'GET',
					success: res => {
						// console.log(res.data.data.infolist)
						that.fa_infolist=res.data.data.infolist
					}
				});
			}
		},
		onLoad() {
			this.getData()
		}
	}
</script>

<style>

</style>
